package com.xbongbong.pro.common.pojo.dto;/*/*/

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.common.pojo.AddressPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 *
 * @author 魏荣杰
 * @date 2019/5/13 15:25
 * @since v1.0
 * @version v1.0
 */
@Setter
@Getter
@ToString
public class LocationSetDTO extends BaseDTO {
    private static final long serialVersionUID = 7413320016512424598L;

    /**
     * 业务类型
     */
    @NotNull(message = "{dto.msg.locationSet.businessType.NotNull}")
    private Integer businessType;

    /**
     * 数据id
     */
    @NotNull(message = "{dto.msg.locationSet.dataId.NotNull}")
    @Min(value = 0, message = "{dto.msg.locationSet.dataId.Min}")
    private Long dataId;

    /**
     * 地址
     */
    @NotNull(message = "{dto.msg.locationSet.address.NotNull}")
    @Valid
    private AddressPojo address;
}
